From: Mary Boetcher, mary_boetcher@quickmail.apple.com
Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
Reply to: RE>Linking & ODF Draw
>>my bewilderment comes in the assignment of
>>the indices for linking. I can not at all tell what values are
>>assigned to the shapes. It appears that when the part is internalized,
>>all the shapes get numbered from 1 to n. Then, if some shapes are
>>pasted in, they also get numbered from 1 to m. So, the end result is
>>a set of shapes numbered: 1..n, 1..m.
When a part or selection is externalized, the shapes are numbered from 1 to n. Then when the part or selection is internalized, these indices are used by the linking internalization code to identify the shapes involved in links. After internalization the indices don't matter anymore. If the part/selection is externalized again, new indices are assigned.
So, basically, the shape indices are only valid in the context of a particular ODFDraw storage unit.